

class LoveGoods {
  List<MbGoodsInfoList> mbGoodsInfoList;
  int? totalCount;

  LoveGoods({required this.mbGoodsInfoList, this.totalCount});

  factory LoveGoods.fromJson(Map<String, dynamic> json) {
    return LoveGoods(
      mbGoodsInfoList: json['mbGoodsInfoList'] != null ? (json['mbGoodsInfoList'] as List).map((i) => MbGoodsInfoList.fromJson(i)).toList() : [],
      totalCount: json['totalCount'],
    );
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.mbGoodsInfoList != null) {
      data['mbGoodsInfoList'] = this.mbGoodsInfoList!.map((v) => v.toJson()).toList();
    }
    data['totalCount'] = this.totalCount;
    return data;
  }
}

class MbGoodsInfoList {
  int? goodsId;
  int? commonId;
  String? commonName;
  String? commonPromotionTips;
  String commonImage = '';
  int? commonSalenum;
  double? commonMarketPrice;
  int? commonState;
  int? commonIsXian;
  String? cornerUrl;
  double? commonPrice;
  int? shopSelfSupport;
  String? selfGoodsNameUrl;

  MbGoodsInfoList(
      {this.goodsId,
      this.commonId,
      this.commonName,
      this.commonPromotionTips,
      this.commonImage = '',
      this.commonSalenum,
      this.commonMarketPrice,
      this.commonState,
      this.commonIsXian,
      this.cornerUrl,
      this.commonPrice,
      this.shopSelfSupport,
      this.selfGoodsNameUrl});

  MbGoodsInfoList.fromJson(Map<String, dynamic> json) {
    goodsId = json['goodsId'];
    commonId = json['commonId'];
    commonName = json['commonName'];
    commonPromotionTips = json['commonPromotionTips'];
    commonImage = json['commonImage'] ?? '';
    commonSalenum = json['commonSalenum'];
    commonMarketPrice = json['commonMarketPrice'];
    commonState = json['commonState'];
    commonIsXian = json['commonIsXian'];
    cornerUrl = json['cornerUrl'];
    commonPrice = json['commonPrice'];
    shopSelfSupport = json['shopSelfSupport'];
    selfGoodsNameUrl = json['selfGoodsNameUrl'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['goodsId'] = this.goodsId;
    data['commonId'] = this.commonId;
    data['commonName'] = this.commonName;
    data['commonPromotionTips'] = this.commonPromotionTips;
    data['commonImage'] = this.commonImage;
    data['commonSalenum'] = this.commonSalenum;
    data['commonMarketPrice'] = this.commonMarketPrice;
    data['commonState'] = this.commonState;
    data['commonIsXian'] = this.commonIsXian;
    data['cornerUrl'] = this.cornerUrl;
    data['commonPrice'] = this.commonPrice;
    data['shopSelfSupport'] = this.shopSelfSupport;
    data['selfGoodsNameUrl'] = this.selfGoodsNameUrl;
    return data;
  }
}
